trigger SavingCopyOfPhoneFieldsonAccount on Account (before Insert,before Update) {

    for(Account Acc : Trigger.New)
    {
        String str = Acc.PersonHomePhone;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Home_Phone__c = str;
        }   
        
        str = Acc.PersonMobilePhone;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Mobile__c = str;
        }   
        
        str = Acc.Work_Phone__pc;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Work_Phone__c = str;
        }   
        
        str = Acc.Marketing_Phone__pc;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Marketing_Phone__c = str;
        }   
        
        str = Acc.Other_Phone_2__pc;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Other_Phone_2__c = str;
        }
        
        str = Acc.PersonOtherPhone;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Other_Phone__c = str;
        }    
        
        str = Acc.Mother_s_Phone__pc;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Mother_Phone__c= str;
        }   
        
        str = Acc.Father_s_Phone__pc;
        if(str != null && str !='')
        {
            str = str.replaceAll('[^0-9]','');
            Acc.Copy_Father_Phone__c = str;
        }   
        
     }
}